package com.cet.ej.job;

import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * @author 30952
 */

@Slf4j
@Component
public class MyOneOffJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
        log.info("一次触发任务开始...");
        log.info("taskId: {}", shardingContext.getTaskId());
    }
}
